package com.example.demo.mapper;

import com.example.demo.entity.UserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface UserRoleMapper {
    int insert(UserRole userRole);
    int deleteByUserId(Long userId);
    List<UserRole> findByUserId(Long userId);
    List<UserRole> findByRoleId(Long roleId);
}